<!DOCTYPE html>
<html>
<head>
	<title>新增/修改部门</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<link rel="stylesheet" href="__PUBLIC__/Admin/css/min.css" />
	<link rel="stylesheet" href="__PUBLIC__/Admin/content/style.css" />

	<!-- jQuery AND jQueryUI -->
	<script type="text/javascript" src="__PUBLIC__/Admin/js/libs/jquery/1.6/jquery.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Admin/js/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Admin/js/min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Admin/content/main.js"></script>
</head>
<body>
<!-- CONTENT -->
<div id="content" class="white">

  <div class="bloc">
    <div class="title">
		<?php
			if(I('get.id')){
				echo '编辑';
			}else{
				echo '新增';
			}
		?>部门
	</div>
    <form method="post" action="editOperation">
		<?php
			$id = I('get.id');
			if($id){
				echo "<input type='hidden' name='id' value='".$id."'/>";
			}
		?>
    <div class="content">
		<div class="input">
			<label class="label">部门名称:</label>
			<input name="name" value="{$object['name']}"/>
		</div>
		<div class="input">
			<label class="label">上级部门:</label>
			<select name='pid'>
				<option value="">无</option>
				<volist name='deplist' id='vo'>
					<option value="{$vo.id}" <eq name="vo.id" value="$object['pid']">selected='selected'</eq> >
						{$vo.name}
					</option>
				</volist>
			</select>
		</div>
      <div class="submit">
        <input type="submit" value="确定保存" class="black"/>
      </div>
    </div>
    </form>
  </div>
</div>
</body>
</html>